package com.echoesnet.echoesshortvideo.ViewModels;

import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.ViewModel;

import com.baidu.mapapi.search.core.PoiInfo;
import com.echoesnet.echoesshortvideo.Repositories.SelectLocationRepository;

import java.util.List;

/**
 * Copyright (C) 2017 在线回声（天津）科技发展有限公司
 * 在线回声完全享有此软件的著作权，违者必究
 *
 * @author an
 * @version 1.0
 * @modifier
 * @createDate 2018/4/25 0025
 * @description
 */
public class SelectLocationModel extends ViewModel
{
    private LiveData<List<PoiInfo>> data;
    private SelectLocationRepository selectLocationRepository;

    public SelectLocationModel()
    {
        selectLocationRepository = new SelectLocationRepository();
    }

    public LiveData<List<PoiInfo>> searchLocation(){
            data = selectLocationRepository.searchLocation();
        return data;
    }
}
